package com.baizhi.cmfz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cmfz_admin")
public class CmfzAdmin implements Serializable {

    /**
     *      @TableId(value = "id",type= IdType.AUTO)
     *      @TableField("username")
     *      @TableField(exist = false)
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    private String salt;

    @TableField(exist = false)
    private List<CmfzRole> roleList;



}
